/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testadventure;

import edu.clemson.cs.hamptos.adventure.AdventureCommand;
import edu.clemson.cs.hamptos.adventure.AdventureEngine;
import edu.clemson.cs.hamptos.adventure.AdventureTarget;
import edu.clemson.cs.hamptos.adventure.AdventureWindow;
import edu.clemson.cs.hamptos.adventure.DoNotUnderstandException;
import edu.clemson.cs.hamptos.adventure.VerbStrategyAlt;
import java.util.HashSet;
import java.util.Set;

/**
 *<p>this class allows you to type the command <code>go through...</code> to enter
 * a door to the next room.</p>
 * 
 */
public class VerbGoThrough implements VerbStrategyAlt {
    protected final HashSet<String> verbs = new HashSet<String>();
   /**
     * <p>Constructs a new instance of <code>VerbGoThrough</code>.</p>
     */
    public VerbGoThrough() {
        verbs.add("go");
    }
    
    @Override
    public void doCommand(AdventureCommand c, AdventureEngine e, AdventureWindow w) {
        //this should not be called
        w.println("BAD CALL, what happened?");
    }

    @Override
    public String getName() {
        return "VerbGoThrough";
    }

    @Override
    public Set<String> getVerbs() {
        return new HashSet<String>(verbs);
    }
    
}
